package com.woniuxy.micromallserver.ordermag.controller;

import com.alibaba.fastjson.JSONObject;
import com.woniuxy.common.bean.ResultMsg;
import com.woniuxy.micromallserver.ordermag.service.IOrderService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author unreleased
 * @date 2021/2/2 10:49return JSONObject.toJSONString(new ResultMsg().setCode(200).setMessage("查询成功").setData(orderServiceImpl.findCurrentMonthSales()));
 */
@RestController
@RequestMapping("/mall")
public class FeignController {
    @Resource
    private IOrderService orderServiceImpl;
    @RequestMapping("/getCurrentMouthSales")
    public String getCurrentMouthSales(){
        return JSONObject.toJSONString(new ResultMsg().setCode(200).setMessage("查询成功").setData(orderServiceImpl.findCurrentMonthSales()));
    }
}
